Skip to content

Updated Log methods, added two Pow methods.#14

Open
mossy2100 wants to merge 4 commits intonathanpjones:masterfrom
mossy2100:updated-log-and-pow-methods
Open

Updated Log methods, added two Pow methods.#14
mossy2100 wants to merge 4 commits intonathanpjones:masterfrom
mossy2100:updated-log-and-pow-methods

Conversation

@mossy2100
Copy link
Copy Markdown

This is a slightly bigger change and I probably need to add more tests. I'd be interested to hear what you think.
I found that the original DecimalEx.Log() hangs for very small argument values, so I made this alternative.
It's fast and doesn't break with the largest or smallest decimal values.
I've used Ln() instead of Log() for the natural logarithm, as I think this is a much better name, but provided Log() as an alias for backwards compatibility.
I've also added Pow10() and Pow2() to match the Log10() and Log2() methods.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant